import request from "@/utils/request";

export const getVideoList = <T>(data?: any) => request<T>('/video/list', {
    method: 'post',
    data
});

export const updateVideo = <T>(data?: any) => request<T>('/video/update', {
    method: 'post',
    data    
})

export const deleteVideo = <T>(data?: any) => request<T>('/video/delete', {
    method: 'post',
    data
})

export const addVideo = <T>(data?: any) => request<T>('/video/add', {
    method: 'post',
    data
})

export const getVideoDetail = <T>(data?: any) => request<T>('/video/detail', {
    method: 'post',
    data
}) 
